<?php
class ui_index_guest extends ui {
	public function __construct($S, $param) {
		parent::__construct();
		
		$data_guest = new data_guest();
		
		$articles = $data_guest->ls_hot();
		$S->assign('articles', $articles);
		
		$data_social = new data_social();
		$weibo_url = $data_social->get_authorize_url('weibo');
		$S->assign('weibo_login_url', $weibo_url, true);				// 这个不能缓存
		
		$renren_url = $data_social->get_authorize_url('renren');
		$S->assign('renren_login_url', $renren_url, true);			// 这个不能缓存
		
		$kaixin001_url = $data_social->get_authorize_url('kaixin001');
		$S->assign('kaixin_login_url', $kaixin001_url, true);			// 这个不能缓存
		
		$qqwb_url = $data_social->get_authorize_url('qqwb');
		$S->assign('qqwb_login_url', $qqwb_url, true);				// 这个不能缓存
		
		// circles 用ajax
	}
}
?>